/**
 * “机构管理”相关接口
 */
import request from '@/utils/request'

export default {

  queryOrganization(queryParam, pageParam) {
    return request({
      url: '/sys_org/query',
      method: 'post',
      data: {
        ...queryParam,
        current: pageParam.current,
        size: pageParam.size
      }
    })
  },

  updateOrganization(data) {
    return request({
      url: '/sys_org/update',
      method: 'post',
      data
    })
  },

  addSysOrganization(data) {
    return request({
      url: '/sys_org/add',
      method: 'post',
      data
    })
  },

  delSysOrganization(data) {
    return request({
      url: '/sys_org/logicDel',
      method: 'post',
      data
    })
  }

}
